home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / comm / mail / PSMail.lha / PSMail / Print.script < prev    next >
Encoding:
Text File  |  2000-10-02  |  1.6 KB  |  43 lines

  1. ; This script assumes you are using GhostScript 5.10, as found on IrseeSoft's
  2. ; site.
  3. ; If you're not using TurboPrint, you'll need to comment out the first
  4. ; GS line and uncomment another line.
  5.  
  6. failat 21
  7.  
  8. YAM:Rexx/PSMail/PSMailPrep ; this sets up an environment variable.
  9. echo >t:YAMPrintStatus "." noline
  10. run <>nil: YAM:Rexx/PSMail/PSMailReq
  11.  
  12. cd GhostScript:
  13. ; For TurboPrint:
  14. GS -sDEVICE=turboprint -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  15.  
  16. ; For Canon BJ200 series (using GhostScript's internal driver):
  17. ;GS -sDEVICE=bj200 -sOutputFile=par: -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  18.  
  19. ; For early Epson Stylus Color series (using GhostScript's internal driver):
  20. ;GS -sDEVICE=stcolor -sOutputFile=par: -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  21.  
  22. ; For HP Laserjet 4L (using GhostScript's internal driver):
  23. ;GS -sDEVICE=ljet4 -sOutputFile=par: -r300x300 -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  24.  
  25. ; For Epson Stylus Color 400/600 series (using GhostScript's uniprint driver):
  26. ; (You may need to install the profiles from the goodies archive!)
  27. ;GS -sOutputFile=par: -dBATCH -dNOPAUSE -q @stc600pl.upp t:YAMMail.ps -c quit
  28.  
  29. ; To display on a custom screen, as a test:
  30. ;GS -sDEVICE=amiga_custom -r90x90 -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  31.  
  32. ; To stream to a real PostScript printer on SER:
  33. ;GS -sDEVICE=pswrite -sOutputFile=ser: -dBATCH -dNOPAUSE -q t:YAMMail.ps -c quit
  34.  
  35. ; You can change the device bit to use another built-in driver.
  36. ; To find out which devices your copy of GhostScript supports, open a shell
  37. ; and type ghostscript:gs -h
  38.  
  39. delete t:YAMPrintStatus ; this will take down the requester
  40. delete t:YAMHeader#?.txt
  41. delete t:YAMPrintMail#?.txt
  42. delete t:YAMMail.ps
  43.